<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>操作成功</title>
    <style>
        .success-container {
            max-width: 600px;
            margin: 100px auto;
            padding: 30px;
            text-align: center;
            background-color: #f8f9fa;
            border-radius: 8px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
        }

        .success-icon {
            font-size: 60px;
            color: #4CAF50;
            margin-bottom: 20px;
        }

        .message {
            font-size: 18px;
            color: #333;
            margin-bottom: 20px;
        }

        .jump-info {
            color: #666;
            font-size: 14px;
        }

        a {
            color: #007bff;
            text-decoration: none;
        }

        a:hover {
            text-decoration: underline;
        }
    </style>
</head>

<body>
    <div class="success-container">
        <div class="success-icon">✓</div>
        <div class="message">{$message}</div>
        <div class="jump-info">
            页面将在 <span id="countdown">{$wait}</span> 秒后自动跳转，或直接 <a href="{$url}">点击这里</a>
        </div>
    </div>

    <script>
        // 倒计时功能
        var countdown = document.getElementById('countdown');
        var wait = parseInt(countdown.textContent);
        var timer = setInterval(function () {
            wait--;
            countdown.textContent = wait;
            if (wait <= 0) {
                clearInterval(timer);
                window.location.href = '{$url}';
            }
        }, 1000);
    </script>
</body>

</html>